var Star;
(function(){
	var num;
	Star=function(num){
		this.num=num;
	}
	Star.prototype.init=function(){
		var crateCir;//星星
		for(var i=0;i<this.num;i++)
		{
			var xR=CLIENTWIDTH*Math.random();
			var yR=CLIENTHEIGHT*Math.random();
			if(xR>CLIENTWIDTH-15) xR=CLIENTWIDTH-15;
			if(yR>CLIENTHEIGHT-15) yR=CLIENTHEIGHT-15;
			var wR=2*Math.random()+3
			var hR=2*Math.random()+3
			var aR=(Math.random());
			console.log(aR)
			var rR=Math.floor(2*Math.random())+3
			crateCir = document.createElement("div");
			crateCir.setAttribute("style","width:"+wR+"px;height:"+hR+"px;border-radius:"+rR+"px;background:white;position:absolute;left:"+xR+"px;top:"+yR+"px;-moz-opacity:"+aR+"; -webkit-opacity:"+aR+"; opacity:"+aR+"; filter:progid:DXImageTransform.Microsoft.Alpha(Opacity="+aR*100+");box-shadow:1px 1px 1px white")
			OBODY.appendChild(crateCir);
			Star.prototype.move(crateCir);
		}
	}
	Star.prototype.move=function(obj)
	{
		
	}
	
})();